package com.danciyixue.boot.client.test.model;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;

/**
 * 单元测试项视图对象
 *
 * @author youlaitech
 * @since 2025-07-27
 */
@Data
@Schema(description = "单元测试项视图对象")
public class UnitTestItem implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "单元ID")
    private Long id;

    @Schema(description = "单元ID")
    private Long unitId;

    @Schema(description = "单元名称")
    private String unitName;

    @Schema(description = "单元排序字段")
    private Integer unitIndex;

    @Schema(description = "教材ID")
    private Long programId;

    @Schema(description = "教材名称")
    private String programName;

    @Schema(description = "系列ID")
    private Long seriesId;

    @Schema(description = "该单元的总单词数量")
    private Integer totalWords;

    @Schema(description = "是否完成测试(0-未完成测试, 1-已完成测试)")
    private Integer isCompleted;

    @Schema(description = "最后一次测试分数")
    private Integer lastTestScore;

    @Schema(description = "最后一次测试时间")
    private String lastTestTime;

    @Schema(description = "测试次数")
    private Integer testCount;
}
